Marvellous Logic Building Asignment - 2
Marvellous Logic Building Asignment - 2
1.Accept one number from user and print that number of * on screen.
int main()
{
int iValue = 0;
printf(“Enter number”);
scanf(“____” ,&____);
Display(iValue);
return 0;
}
2. Accept one number from user and print that number of * on screen.
int main()
{
Piyush Khairnar - 7588945488 आ"ी Technical सं&ार करतो !!! ©Marvellous Infosystems Page 1
Marvellous Logic Building Assignment : 2
int iValue = 0;
printf(“Enter number”);
scanf(“____” ,&____);
Display(iValue);
return 0;
}
int main()
{
int iValue = 0;
printf(“Enter number”);
scanf(“____” ,&____);
Display(iValue);
return 0;
}
4. Accept two numbers from user and display first number in second
number of times.
Input : 12 5
Output : 12 12 12 12 12
Piyush Khairnar - 7588945488 आ"ी Technical सं&ार करतो !!! ©Marvellous Infosystems Page 2
Marvellous Logic Building Assignment : 2
Input : -2 3
Output : -2 -2 -2
Input : 21 -3
Output : 21 21 21
Input : -2 0
Output :
#include<stdio.h>
int main()
{
int iValue = 0;
int iCount = 0;
printf(“Enter number”);
scanf(“____” ,&____);
printf(“Enter frequency”);
scanf(“____” ,&____);
Display(_____, ______);
return 0;
}
#include<stdio.h>
#define TRUE 1
#define FALSE 0
Piyush Khairnar - 7588945488 आ"ी Technical सं&ार करतो !!! ©Marvellous Infosystems Page 3
Marvellous Logic Building Assignment : 2
int main()
{
int iValue = 0;
BOOL bRet = FALSE;
printf(“Enter number”);
scanf(“____” ,&____);
bRet = ChkEven(_____);
// Display result
return 0;
}
Piyush Khairnar - 7588945488 आ"ी Technical सं&ार करतो !!! ©Marvellous Infosystems Page 4