This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
void main() | |
{ | |
int rows,starNo,spaceNo; | |
printf("Enter Rows:\n"); | |
scanf("%d",&rows); | |
for(int i=1;i<=rows;i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main() | |
{ | |
int i,j,askey; | |
printf("\n\nPrint the 3*3 matrix from i to j\n"); | |
printf("---------------------------------\n"); | |
askey=105; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
//#include<conio.h> | |
int main( ) | |
{ | |
int r,c,askey,sp,num; | |
printf("\n\n\tC PROGRAM TO PRINT REVERSE PYRAMID OF ALPHABETS \n"); | |
printf("\nEnter the number of rows you want to show in your reverse pyramid : "); | |
scanf("%d",&num); | |
printf("\n\n\n"); | |
for( r=num; r>=1; r-- ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I/P: How many rows: 5 | |
O/P: | |
@ 1 1 1 1 | |
2 @ 2 2 2 | |
3 3 @ 3 3 | |
4 4 4 @ 4 | |
5 5 5 5 @ | |
//Logic | |
#include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('async') | |
async function f() { | |
let promise = new Promise((resolve, reject) => { | |
setTimeout(() => resolve("done!"), 1000) | |
}); | |
let result = await promise; // wait till the promise resolves (*) |
OlderNewer