Skip to content

started with C ------> should end up with next OS huaaaahahaha!!!!!

Notifications You must be signed in to change notification settings

nilayshah812/-C-horrors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

-C-horrors

//started with C ------> should end up with next OS jk!!!!!!!

//my first program. Much of a great effort....

#include<stdio.h> int main()

{

char a;

int val ,i,j;

printf("enter the number of alphabets u want  \n");

scanf("%d",&val);

for(i= 0 ;i<val;i++)

{

	a='A';
	
	if(i%2==0)
	
	{
	
		for(j=0;j<i+1;j++)
		{
			if(j%2==0)
				printf("%c",a);
			else
				printf("%c",a+32);
		a++;
		}
	}
	else
	{
		for(j=0;j<i+1;j++)
		{
			if(j%2==0)
				printf("%c",a+32);
			else
				printf("%c",a);
		a++;
		}
		
	}
	

	printf("\n");
}
return 0;

}

//output is like

/* enter the number of alphapets u want 5 o/p

A

aB

AbC

aBcD

AbCdE*/

About

started with C ------> should end up with next OS huaaaahahaha!!!!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published